-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MINOR] Avoid unnecessary overhead in createvar instructions
This patch makes a minor performance improvement to the createvar instruction execution (which happens for every non-scalar operator). In detail, the need for creating unique file names (from one instruction), led to unnecessary string concatenation and thus object allocation. We now reuse the existing thread-local string builders as used for instruction generation. On a special-case scenario with ~1M loop iterations over tiny data (100 values), this patch improved the createvar overhead from 22.1s to 5.6s (and overall from 49s to 33s).
- Loading branch information
Showing
2 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters