Julia performance for pointer based data structures?

Ignoring GC costs, does the lack of raw pointers cause possible performance issues (compared to C) if you want to implement pointer-based data structures like linked lists and trees? Julia exposes some pointers for C interrop - is this also useful for writing low-level data structures within Julia?

https://docs.julialang.org/en/v1/base/c/#Base.pointer

https://docs.julialang.org/en/v1/base/c/#Core.Ptr

3 Likes

You don’t usually work with pointers directly in julia. If anything, you’d use Ref or mutable structs. The pointers are handled for you by the compiler.

3 Likes