Hi Elias, I believe in principle what we want is something like this: Z←FOO¨Z←⎕FIO[N] 'filename' where ⎕FIO[N] reads 'filename' line by line putting each line j into the nested item Z[j] and FOO is a decoding function that translates a line into whatever Z[j] shall become in the end. The current performance problem is then solved by the ¨ operator which allocates a big enough Z beforehand and fills it with the result of FOO for each line. I can try to make ⎕FIO an operator so that you can use Z←FOO ⎕FIO[N] 'filename' for the above and I hope that will be syntactically possible. But it looks almost like +/[N]B with FOO instead of + and ⎕FIO instead of / which I believe should work somehow. Can become a little tricky though, because there are the same ambiguities for ⎕FIO then those for / (function versus operator). /// Jürgen On 01/17/2017 09:37 PM, Elias Mårtenson
wrote:
|
- [Bug-apl] Performance problems when constructing large(i... Elias Mårtenson
- Re: [Bug-apl] Performance problems when constructin... Nick Lobachevsky
- Re: [Bug-apl] Performance problems when constru... Elias Mårtenson
- Re: [Bug-apl] Performance problems when con... Elias Mårtenson
- Re: [Bug-apl] Performance problems when constru... Juergen Sauermann
- Re: [Bug-apl] Performance problems when con... Elias Mårtenson
- Re: [Bug-apl] Performance problems when... Juergen Sauermann
- Re: [Bug-apl] Performance problems... Blake McBride
- Re: [Bug-apl] Performance prob... Xiao-Yong Jin
- Re: [Bug-apl] Performance ... Blake McBride
- Re: [Bug-apl] Performance ... Elias Mårtenson
- Re: [Bug-apl] Performance ... Juergen Sauermann
- Re: [Bug-apl] Performance ... Elias Mårtenson
- Re: [Bug-apl] Performance ... Juergen Sauermann
- Re: [Bug-apl] Performance ... Elias Mårtenson
- Re: [Bug-apl] Performance ... Ala'a Mohammad