-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib.join is slow and unnecessary #3
Comments
Never mind. I can monkey-patch that later, after I require 'xml'. lib.join does not always do exactly the same: it respects the __concat metamethod but table.concat does not. |
Hi @dlaurie. I'm sorry that I don't work with Lua anymore and am not maintaining this. I can give you write access to the repo and arrange so that you can publish to luarocks if you want. |
Hi Gaspard,
Thank you for responding. I would be grateful for write access, which I
promise to use responsibly.
Best wishes.
Dirk
2018-07-14 13:42 GMT+02:00 Gaspard Bucher <[email protected]>:
… Hi @dlaurie <https://github.com/dlaurie>. I'm sorry that I don't work
with Lua anymore and am not maintaining this. I can give you write access
to the repo and arrange so that you can publish to luarocks if you want.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB9TPKe7DlQsUBWsNmKt5a3Vrp8ZF2S3ks5uGdksgaJpZM4VEiJ2>
.
|
OK. Done. Don't hesitate to ring me if you need access to other packages. |
(I mean ring @gaspard). |
The algorithm in lib.join is extremely slow, requiring allocation of a new string for every element in the array. Moreover, lib.join appears to do exactly the same as the standard function table.concat.
Suggestion: replace its definition by
lib.join = table.concat
The text was updated successfully, but these errors were encountered: