12-13-2019, 01:22 PM
Hi Listy,
How did you time your naming? I timed the functions NamingUtil.naming_to_dir and naming_to_file in src/pyasm/biz/naming.py using time.time() at the beginning and end of the functions. I also used your naming conventions.
For naming_to_dir on an expression with multiple references to parent, times during checkin are:
0.0396330356598
0.0060019493103
0.00517797470093
0.00679898262024
0.00790619850159
0.00686097145081
TACTIC is calling this function for the main, web and icon types, presumably for checkin and versionless checkin. It appears that that after the first call, information is cached.
It is possible that something in the naming engine is causing the bottle neck, and I would be happy to work with you to find that bottleneck.
Although it would be ideal to use the naming table as is, there are other naming methods available:
- @PYTHON script - can reference a Python script that does custom caching using the Container.
- Custom naming classes - can reference a class that performs custom caching using the Container
Hope this helps!
Celton
How did you time your naming? I timed the functions NamingUtil.naming_to_dir and naming_to_file in src/pyasm/biz/naming.py using time.time() at the beginning and end of the functions. I also used your naming conventions.
For naming_to_dir on an expression with multiple references to parent, times during checkin are:
0.0396330356598
0.0060019493103
0.00517797470093
0.00679898262024
0.00790619850159
0.00686097145081
TACTIC is calling this function for the main, web and icon types, presumably for checkin and versionless checkin. It appears that that after the first call, information is cached.
It is possible that something in the naming engine is causing the bottle neck, and I would be happy to work with you to find that bottleneck.
Although it would be ideal to use the naming table as is, there are other naming methods available:
- @PYTHON script - can reference a Python script that does custom caching using the Container.
- Custom naming classes - can reference a class that performs custom caching using the Container
Hope this helps!
Celton