Closed kysrpex closed 2 years ago
@yzuuang Can you verify that this improves the situation? Or should more be done? Regardless of the answer, at least the tests seem to run faster (real, wall time is the second number). We would gain something already merging this.
In [70]: no_optimization
Out[70]:
{'TestSessionAPI': (0.333, 0.368),
'TestOntologyAPICity': (1.316, 1.35),
'TestOntologyAPIFOAF': (1.956, 7.874),
'TestBundledOperations': (0.077, 0.1),
'TestToolsPico': (7.064, 7.066),
'TestToolsGeneral': (0.098, 0.122),
'TestToolsImportExport': (0.829, 0.874)}
In [71]: optimization
Out[71]:
{'TestSessionAPI': (0.137, 0.168),
'TestOntologyAPICity': (0.308, 0.335),
'TestOntologyAPIFOAF': (0.118, 5.98),
'TestBundledOperations': (0.06, 0.079),
'TestToolsPico': (6.849, 6.879),
'TestToolsGeneral': (0.029, 0.054),
'TestToolsImportExport': (0.203, 0.242)}
Cache
from_identifier
for T-BoxesCache
from_label
for T-Boxes