Software / code / prosody
Annotate
TODO @ 11183:2ac63715ef6f
util.paths: Optimize path joining with few arguments
A casual search suggests that the majority of paths.join() calls involve
only two arguments. This saves the creation of a table for up to 3
arguments.
Looks like 3x faster for 3 arguments or less, 5% slower when it uses the
array to concatenate.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 11 Oct 2020 23:04:13 +0200 |
| parent | 9803:35ef6af41600 |
| rev | line source |
|---|---|
| 5405 | 1 == 1.0 == |
|
4138
62f5e6b11571
TODO: Update for 0.9 milestones
Matthew Wild <mwild1@gmail.com>
parents:
4134
diff
changeset
|
2 - Roster providers |
|
62f5e6b11571
TODO: Update for 0.9 milestones
Matthew Wild <mwild1@gmail.com>
parents:
4134
diff
changeset
|
3 - Clustering |
| 2663 | 4 - World domination |