Zulip Chat Archive
Stream: lean4 dev
Topic: LEAN_SMALL_ALLOCATOR
Chase Norman (Feb 01 2025 at 02:54):
Generally, when should we expect LEAN_SMALL_ALLOCATOR
to be defined? Also, why are all of these functions in lean/lean.h
declared inline
? Especially for those with dependencies on a compile-time parameter like LEAN_SMALL_ALLOCATOR
, it is important that these symbols are exported so that external programs can be assured that they are using the correct implementation.
Henrik Böving (Feb 01 2025 at 08:55):
Generally, when should we expect
LEAN_SMALL_ALLOCATOR
to be defined?
Always unless the user is using a non default build
Also, why are all of these functions in
lean/lean.h
declaredinline
For performance reasons, a normal Lean program pretty much doesn't do anything else apart from calling functions from lean.h
Chase Norman (Feb 01 2025 at 09:22):
Thanks!
Last updated: May 02 2025 at 03:31 UTC