Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > microsoft.public.vb.general.discussion > #118476
| From | ObiWan <obiwan@mvps.org.invalid> |
|---|---|
| Newsgroups | microsoft.public.vb.general.discussion |
| Subject | Re: Which is better |
| Date | 2024-06-03 17:39 +0200 |
| Organization | n/a |
| Message-ID | <v3ko35$15i2m$2@solani.org> (permalink) |
| References | (3 earlier) <v3jrrm$15632$2@solani.org> <v3kdb2$15aer$1@solani.org> <v3kemr$15ggd$1@solani.org> <v3kjnc$15jbp$1@solani.org> <v3kn9n$15i2m$1@solani.org> |
:: On Mon, 3 Jun 2024 17:25:43 +0200 :: (microsoft.public.vb.general.discussion) :: <v3kn9n$15i2m$1@solani.org> :: ObiWan <obiwan@mvps.org.invalid> wrote: > As I wrote, the difference is that the SQR() function invokes the CPU > native function(s) to perform the calculation, while using the "power" > approach, VB is forced to "do the math" using its own math libraries in short, the optimizer isn't "smart" enough to understand that (x)^0.5 may be converted to an sqr() call under the hood, so VB doea all the math ... It would be interesting, if you used the "^0.5" approach in some real app code, to replace those with "sqr()" and check the resulting speed
Back to microsoft.public.vb.general.discussion | Previous | Next — Previous in thread | Next in thread | Find similar
Which is better StanWeiss <srweiss1@comcast.net> - 2024-05-30 10:58 -0400
Re: Which is better ObiWan <obiwan@mvps.org.invalid> - 2024-05-30 17:33 +0200
Re: Which is better StanWeiss <srweiss1@comcast.net> - 2024-05-31 09:07 -0400
Re: Which is better StanWeiss <srweiss1@comcast.net> - 2024-06-01 15:56 -0400
Re: Which is better ObiWan <obiwan@mvps.org.invalid> - 2024-06-03 09:34 +0200
Re: Which is better ObiWan <obiwan@mvps.org.invalid> - 2024-06-03 09:37 +0200
Re: Which is better ObiWan <obiwan@mvps.org.invalid> - 2024-06-03 14:35 +0200
Re: Which is better ObiWan <obiwan@mvps.org.invalid> - 2024-06-03 14:59 +0200
Re: Which is better StanWeiss <srweiss1@comcast.net> - 2024-06-03 10:24 -0400
Re: Which is better ObiWan <obiwan@mvps.org.invalid> - 2024-06-03 17:25 +0200
Re: Which is better ObiWan <obiwan@mvps.org.invalid> - 2024-06-03 17:39 +0200
Re: Which is better ObiWan <obiwan@mvps.org.invalid> - 2024-06-04 18:16 +0200
Re: Which is better ObiWan <obiwan@mvps.org.invalid> - 2024-06-05 16:00 +0200
Re: Which is better ObiWan <obiwan@mvps.org.invalid> - 2024-06-05 16:39 +0200
csiph-web