realbasic-plugins
[Top] [All Lists]

Re: C code to RB Plugin code

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: C code to RB Plugin code
From: Tim Jones <tjmac at tolisgroup dot com>
Date: Thu, 08 Nov 2007 08:59:07 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
Organization: TOLIS Group, Inc.
References: <47322F42 dot 2080500 at tolisgroup dot com> <2373588F-33BD-4D47-A0E9-BB61ABE8197F at elfdata dot com>
Theodore H. Smith wrote:
> Why do you even need this code?
>
> It runs fast, but... what does it run fast for? I mean, what does it  
> DO, basically?
>   

Allows us to handle 1024 byte primes and perform very large 
exponentiation - i.e.: 2**1024**LargePrime very quickly.  This is used 
as part of an extreme, asymmetric Diffie-Hellman authentication mechanism.

> Anyhow, just an idea... but what about turning it into a class?
>   

We started there.  Even by manually unrolling the loops, we face a 40 
second calculation with all #pragma optimizations.  The same basic 
function in Python takes 14ms and our C code takes 4ms.

Since I finally found the culprit last night, I'm sending a summary 
follow-up in a separate email that should respond to most of your 
remaining notes.

Tim

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>