On Thu, Dec 6, 2018 at 8:05 AM 'Paulo Matos' via Racket Users <firstname.lastname@example.org> wrote: > > > > On 05/12/2018 11:55, Tony Garnock-Jones wrote: > > I suspect it will be slow because sets are generics, and generics are > > slow. > > I am curious now. How slow? Why? Do you have any data backing this up? > Generics are very useful, I would be very disappointed if they are > indeed very slow.
A quick test suggests that hash-has-key? is about twice as fast as set-member? on a 10-element set of integers. Sam -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.