Re: Unsigned integers?

From: Jacques Garrigue (garrigue@kurims.kyoto-u.ac.jp)
Date: Fri Mar 24 2000 - 03:50:17 MET

  • Next message: Jacques Garrigue: "Re: Using Tk extensions under caml/labltk"

    From: Max Skaller <maxs@in.ot.com.au>

    > Note these operations MUST be extremely fast,
    > and in particular, compact storage of ISO-10646
    > code points in arrays of integers is OK,
    > while arrays of boxed values is out of the question.
    > (So I can't use int32).

    If compact storage is the problem, ocaml 3.00 also provides bigarrays,
    which allow you to store int32 values in flat arrays (even
    multidimensional).
    For the cost of boxing/unboxing in int32 computations, you will
    probably have to test whether it meets your needs or not.

    By the way, is there any plan to do for int32 the same kind of
    optimizations as are done for floats (no boxing/unboxing in the middle
    of a computation)? Already done?

    ---------------------------------------------------------------------------
    Jacques Garrigue Kyoto University garrigue at kurims.kyoto-u.ac.jp
                    <A HREF=http://wwwfun.kurims.kyoto-u.ac.jp/~garrigue/>JG</A>



    This archive was generated by hypermail 2b29 : Fri Mar 24 2000 - 16:52:21 MET