Open CeylonMigrationBot opened 9 years ago
[@gavinking] @jvasileff what happens on JS?
[@jvasileff] Ha, you're going to make me work for this one!
It works on JS, but then I found #5581.
However, it is painfully slow to use (112 seconds to create 50k 1s with withTrailing
, another 112 seconds to sum them with reduce
). But I don't think I want to get in the habit of filing performance bugs.
[@gavinking] Yeah our tuples aren't actually linked lists, even though they look like they are. Building big tuples with withTrailing()
or withLeading()
is very inefficient.
[@jvasileff] IIRC, at least on the JVM, the penalty was especially bad though using Tuple
s, which you get when starting out with empty
.
But yeah, you're right, best just not to write code like this.
[@jvasileff](copied verbatim from #2174)
With the recent
Tuple
work, I thought I'd finally submit this one that I've had for a while. AFAICT, the first issue below (2k iterations) has already been fixed.[Migrated from ceylon/ceylon.language#702]