forked from randym/axlsx
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shared string should be faster than non-shared string serialization
- Loading branch information
Showing
4 changed files
with
19 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,5 +72,9 @@ def to_xml_string(str = '') | |
str << "/>" | ||
end | ||
|
||
def signature | ||
"#{@rgb}:#{auto}:#{@tint}" | ||
end | ||
|
||
end | ||
end |
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
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
What is happening here?
Isn't it better/faster to use real hashes (String#hash / equivalents). Just appending a few strings seems very inefficient/hackish ;)