Yes, I have a similar thought :)

On Thursday, May 10, 2018 at 8:35:57 PM UTC-4, Andrew Knapp wrote:
>
> Another idea/request: replace the use of 
> ATS_MEMALLOC_USER/ATS_MEMALLOC_LIBC and friends with embeddable templates.
>
> In this example
>
> let
>   implement allocate<message>() = pool_allocate<message>(the_message_pool)
>   implement free<message>(p) = pool_free<message>(the_message_pool, p)
> in
>   latency_critical_loop<>()
> end
>
> templatizing the memory management functions would allow 
> latency_critical_loop to be written like ordinary ATS code, but it would 
> benefit from fast message allocation at runtime.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ats-lang-users+unsubscr...@googlegroups.com.
To post to this group, send email to ats-lang-users@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ats-lang-users/a505d183-45e2-4569-853c-1fdff120e84d%40googlegroups.com.

Reply via email to