Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP Power vs. Database Lookup Re: PHP Power vs. Database Lookup

#130245
CrocoDillon
Participant

I once needed sin and cos so much I decided to make an array with 360 values for each (rounded to degrees was enough accuracy), which was a nice speed improvement. Looking up indexed keys in databases will be equally fast, but it’s hard to say at what point one will become faster then the other. I’d suggest to run your own benchmarks and see from there if it’s worth it.