Modify ↓
Opened 10 years ago
Closed 10 years ago
#11663 closed enhancement (needinfo)
[patch] color properties
| Reported by: | shinigami | Owned by: | shinigami |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | latest |
| Keywords: | Cc: |
Description
ColorProperty.getColorName xlates color names again and again... added cache of xlated names + precompiled pattern.
Attachments (1)
Change History (6)
by , 10 years ago
| Attachment: | color_property.patch added |
|---|
comment:1 by , 10 years ago
follow-up: 4 comment:2 by , 10 years ago
| Summary: | color properties → [patch] color properties |
|---|
what does "xlated" mean?
comment:3 by , 10 years ago
In your patch, the line 56 should use the "colName.toLowerCase()" method, shouldn't ?
comment:4 by , 10 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → needinfo |
comment:5 by , 10 years ago
| Resolution: | → needinfo |
|---|---|
| Status: | needinfo → closed |
Note:
See TracTickets
for help on using tickets.



Few remarks for this patch:
synchronizedat all. We risk only that the same value will be computed more than once, but once all is computed, we will use happy path without monitor locks.Did you ran your changes through some benchmarks? What is the gain for typical user?