• 0 Posts
  • 7 Comments
Joined 2 years ago
cake
Cake day: June 22nd, 2023

help-circle

  • If you use the profiler and see that the slower operation is being used frequently, and is taking up a chunk of time deemed significant, why not swap it to the faster version?

    In a simulation I’m working on that goes through 42 million rounds I spent some time profiling and going through the code that was eating up a lot of time (especially things executed all 42 million times) and trying to find some optimizations. Brought the run time down from about 10 minutes to 5 minutes.

    I certainly wasn’t going to start over in C++ or Rust, and if I’d started with either of those languages I would have missed out on a lot of really strong Python libraries and probably spent more time coding rather than refining the simulation.






  • Mobile phones in the era before smartphones had cameras, email clients, games, music players, and even web browsers. They just weren’t very good at those functions and their core feature was being a phone for voice calls. Texting was barely a feature on some of them (the first camera phone in the United States, the Sanyo SCP-5300, didn’t have a two way text messaging client - the user had to go to a website on the phone to send texts, which was inconvenient even on a 1xRTT 3G connection.)

    The e-ink phone seems closer to a dumbphone than a smartphone, IMO, largely because it lacks access to an app store.

    Source: I sold mobile phones before smartphones and during the early smartphone years (BlackBerry and Palm Treo, for example.)

    Edit: calling it a feature phone instead of a dumb phone might be more accurate.