Optimize vertex rendering

* Cache icon
* Append rather than insert
* Do fewer things on update
* Don't create a fill unless needed
* Don't apply tag and member classes (never used)
* Drop down to raw setAttribute (d3 is slow :trollface:)
This commit is contained in:
John Firebaugh
2013-05-11 14:16:19 -07:00
parent 6060e886cb
commit 70e5411114
3 changed files with 39 additions and 86 deletions
+1 -5
View File
@@ -73,7 +73,7 @@ g.point.active, g.point.active * {
/* vertices and midpoints */
g.vertex .fill {
fill: none;
fill: #000;
}
g.vertex .stroke {
@@ -86,10 +86,6 @@ g.vertex.shared .stroke {
fill: #aaa;
}
g.vertex.tagged .fill {
fill: #000;
}
g.midpoint .fill {
fill: #ddd;
stroke: black;