You can construct JS arrays quickly just like you would in JavaScript.

David


On Mon, Jun 2, 2014 at 2:50 AM, Andreas Arnold <[email protected]> wrote:

> I'm trying to use ClojureScript to write a tile-based visualization with
> WebGL. This requires me to build up a large JavaScript array.
>
> As you can see in the attached screenshot, this leads to a small problem:
> `clj->js` is really slow (this was run with a grid of 100x100).
>
> Annotating the arrays with '#js' won't work since they are generated
> dynamically. Making the arrays offline is, as I see it, not an option
> either, since the colors of the tiles should change based on input, so one
> large JavaScript array at least is needed during the execution.
>
> I was wondering if there is some other workaround for this? Or did I just
> stumble upon a use case where ClojureScript might not be a good solution?
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to