Uh oh!
There was an error while loading. Please reload this page.
fixed #11342 - cache Library::getFunctionName() calls in Token - #7573
fixed #11342 - cache Library::getFunctionName() calls in Token#7573firewave wants to merge 2 commits into
Library::getFunctionName() calls in Token#7573Conversation
firewave
commented
Jun 5, 2025
|
firewave
commented
Jun 5, 2025
Still that shouldn't produce different results on subsequent calls on the same token. Since the library is immutable it seems like this is caused by some tokenizing/simplification. |
The problem is that the From |
b1f1df1 to
2cee634Compare| if (!mImpl->mFuncName) | ||
| mImpl->mFuncName = new std::string(library.getFunctionName(this)); | ||
| const std::string fname = library.getFunctionName(this); | ||
| std::cout << this << " astParent: " << astParent() << " previous: " << previous() << " " << stringify(stringifyOptions::forDebug()) << " " << fname << std::endl; |
There was a problem hiding this comment.
I assume that this is debug code that will be removed?
There was a problem hiding this comment.
still WIP - I forgot to mark it a draft.
danmar
commented
Jun 9, 2025
I assume there is speedup but do you see it also? |
firewave
commented
Jun 10, 2025
Since it is still a draft (and not working as expected) I did not provide performance data yet. It is about 2-4% of the total Ir - that is also mentioned in the ticket. |
No description provided.