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/21848c3c-c5a0-42c1-87b5-86a927a7de3e%40googlegroups.com.

Reply via email to