Piotr Szotkowski

The Modern Prometheus

Hacker scientist. Assistant professor at Warsaw University of Technology.

Balkan Ruby 2018

00:03:47 Please, please, please don't make decisions about your application based on some benchmarks. In particular, don't make...
00:04:31 Say super creates the and it compares operation exception, raising an exception where you select from an empty table. Grab the...
00:04:53 Detective records, selecting from an empty table, and also insert into the state. This is nothing particularly ugly. This probably has the biggest impact when we run it.
00:05:00 Yes, raising exceptions can be slower than appraising the section.
00:05:08 But still, it's slower doing a desert 20 times slower.
00:05:13 So yes, exceptions are slower than a porous library.
00:05:18 That switched in version 1.0. If you try to go over the limit, it means if you have like 15 algorithms, you will find this moment or bomb.
00:05:28 They made it, but still, you know, I really have performed, that's wonderful.
00:05:49 This benchmark actually returns a string; it's basically a version of Benjamin. If you prefer this, you shouldn't compare against other libraries. Comparing it in the next survey with a static text file is possible.
00:06:02 Which can do for millimeters per second; I'm super happy, first of all.
00:07:53 So for example, integers and collections without traction.
00:11:04 This is much more hateful to this number.
00:11:15 This will only operate as many times as there are digits in better representations such as 1, 1, 0, 0, 0, 1. Then, this will take 5 iterations.
00:11:22 It doesn't leave the integer range, so it's obviously faster than doing many things in the streams.
00:11:30 Then counting, stop treating it as you can probably imagine.
00:11:36 We'll see soon how reasonably this algorithm, which is based on the basic premise, will only iterate as many factors as there are actually ones.
00:11:45 For 1, 0, 0, 1, and then there's my favorite implementation, which looks like magic. Actually, the small pipes are 0 and 1.
00:13:41 So, inside, it contains hopefully, and probably has a few bridges in the current process or distraction.
00:15:58 So we can just take our number, slice it into four parts, and look at how many bits are set in each of those parts.
00:16:05 You see how guess.
00:16:39 So when the... But interesting, because those numbers are in general posture, some of them are significant.
00:20:43 You know.
00:21:17 So, for example, a recommendation of your code might actually lead to smaller code.
00:22:08 So.
00:23:22 Rather, people here, I want to be super clear that I'm with my cheek.
00:23:28 One of the most abstractions thrusts give you great performance regardless of how bad.
00:23:40 So this will take a relatively body approach, basically creating an iterator on all the characters and replacing them with the screen created from this hard code of the drug.
00:24:01 Otherwise, it changes the power through the strings and collects the whole way through.
00:24:06 I will show you the next slide very similar, so that is actually much faster.
00:24:14 Here we do something pretty similar except we allocate memory for sleep with enough capacity.
00:24:27 Just for the sake we are in this box; it is the fastest by far, but it is slower for us to have looks, they become booty call.
00:25:30 But it was for...