Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Tax
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 May 2017 at 22:27 UTC
Updated:
6 Jun 2017 at 11:09 UTC
Jump to comment: Most recent
Zones are needed 2 or 3 times in the process (applies(), apply()), but they are instantiated from scratch each time, which isn't free, especially in EuropeanUnionVat which has many. Let's put them behind a static cache. EuropeanUnionVat can also cut down on the number of t() calls since most strings are the same.
Comments
Comment #3
bojanz commented