Re: Optimizing multiple dispatch

From: Jacek Generowicz (jacek.generowicz_at_cern.ch)
Date: 06/03/04


Date: 03 Jun 2004 16:19:26 +0200


[Hi, Brian, fancy meeting you here !]

Brian Gough <bjg@network-theory.co.uk> writes:

> If the arguments inside the loop have fixed types, then maybe you
> could have a method to get the reference to the function (once)
> outside the loop.

Yup, we do that already ... it gives us more than a factor of 2
improvement in a particular politically important benchmark.

But, this must remain an option open to the user, and there is still a
need to make the thing go faster without pre-selection.



Relevant Pages

  • Re: StackOverflow Exception in JNI
    ... > I have a loop written in C/JNI which calls back a Java object (which ... temporary objects in your native method and then return a valid ... reference without thinking too much about these issues. ...
    (comp.lang.java.programmer)
  • Re: Why is C# 450% slower than C++ on nested loops ??
    ... The posted benchmark was crucial to ... > compilers generate for the loop and get over with it. ... > additions in the outer loops, which the C# compiler doesn't. ... gotten around to implementing every possible optimization in every language, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Looping-related Memory Leak
    ... memory leak / balloon for reasons I cannot figure out. ... end of the loop. ... reference count never reaches zero, and they remain alive until the ... the generational collector doesn't break cycles that involve ...
    (comp.lang.python)
  • Re: dynamic form validation / multiple forms
    ... for diagnosing the problems that produce errors on the browser. ... part is redundant as soon as you are passing the reference to the form ... of the form element but then using that name to look-up ... global variables a loop counters is particularly problematic as it ...
    (comp.lang.javascript)
  • Re: Bit-order reversal (little-endian <--> big-endian)
    ... The only thing I did with your do loop is ... copy and paste it into a benchmark app. ... Certainly you can use a standard if then statement instead of the IIF. ... design is faster as it avoids extra iterations. ...
    (microsoft.public.vb.general.discussion)