You must be registered to post a reply. Click here to register.
T O P I C R E V I E W
Predelnik
Posted - May 26 2015 : 07:34:33 AM Renaming something which has common name, like `data` or `i` though it may be just class private variable name or something similar could take enormous amount time (approx. 50x difference more than in normal case).
I don't really care for references with question mark it finds, all I want is to rename it faster, could I somehow ignore "references with question mark" to have faster searching?
1 L A T E S T R E P L I E S (Newest First)
accord
Posted - May 27 2015 : 4:27:53 PM Unfortunately we need to analyze the context of each occurrence so we know whether it's valid or not. We then decide to use the ? mark or not.
You have 2 way to speed up the process: 1. untick the "Search all projects" checkbox if you're sure that there are no references from other projects 2. press the "Stop" button to stop the search if you are sure that all references are found already. You can still proceed with the rename nonetheless.
Yes, rename is much slower for very short variable names. (I usually use variables like "i" inside methods so VA doesn't scan other files in that case.)