Open kiilki opened 10 years ago
I'm totally fine with adding a guard around the Date calls. There's no reason to make them if the logging level is too low. I'm happy to take this as a pull request. Otherwise I can probably knock this out sometime this weekend.
I leave this for you as I did not find easily how you generally have implemented guards and yet implementing this by yourself is easier than reviewing my proposal :-). Thanks for quick reply.
Hi, Any updates on this issue?
We are using dagre in our project and having performance challenges with very large graphs. When profiling the cause for it we noticed that dagre functions seems to go through time function:
I would guess that this wrapper function is initially done for development purposes to log function durations but it is left, maybe accidentially, without flags to production version.
According the following 'cleaning' increases performance 40%. So maybe you should check whether Date variable defs and Date comparing could be flagged off in the production version?