Software /
code /
prosody
Comparison
prosody.cfg.lua.dist @ 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 | 10422:cb6c0a5f9367 |
child | 11560:3bbb1af92514 |
comparison
equal
deleted
inserted
replaced
11182:bab8d01e139a | 11183:2ac63715ef6f |
---|