Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
профилировка показывает что заметная часть CPU уходит на замену кавычек. Сделано: * предкомпилированные regexp'ы вместо String.replaceAll и String.replace (которые внутри компилят регекспы при каждом вызове) * замена StringBuffer на StringBuilder, тредобезопасность тут не требуется, но может мешать JIT * использование CharSequence чтобы избежать множественный StringBuilder.toString
- Loading branch information
Showing
2 changed files
with
29 additions
and
21 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
c2ce230
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Насколько лучше стало после этого коммита?
c2ce230
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
стало быстрее и меньше создавать мелких объектов в памяти и только