Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why browsers are bloated [Part 2]

Name: Anonymous 2016-04-23 22:49

Cudder is all talk and no action!

Name: Anonymous 2017-05-17 2:28

How about something bigger... much bigger?

That's what she said

Name: Cudder !cXCudderUE 2017-05-17 10:36

>>279
I could probably make something in a week if I didn't care about efficiency at all.

>>280
I generated it.

Name: Anonymous 2017-05-17 12:30

>>282
I generated it.
That's not a real world case though

Name: Anonymous 2017-05-18 20:38

Are you going to make a public release after you're done with the css parser?

Name: Anonymous 2017-05-18 20:42

>>284
Of course she will!
Just give her 5-7 years to iron the kinks!

Name: Anonymous 2017-05-18 21:33

>>278
The average web page is way less than 1MB though. Shouldn't you be optimizing for the most common case rather than for some arbitrarily large document?

Name: Anonymous 2017-05-18 22:07

>>286
I just went on Trump's shitter and clicked the first tweet; the HTML alone was 1.7MB.

Name: Anonymous 2017-05-18 22:12

>>287
Twatter, facefuck and the other social media sites are all like that.
They have a very bloated DOM.

Name: Anonymous 2017-05-18 22:13

>>288
What is the average webpage then?

Name: Anonymous 2017-05-18 22:22

>>289
2ch

Name: Anonymous 2017-05-18 22:35

>>290
I just checked some boards and they are all around 600KB.

Name: Cudder !cXCudderUE 2017-05-19 11:44

>>283
Generated from webserver access logs.

>>284
Acid2 pass, like I've been saying all along.

>>286
This page takes 6.7ms in my parser (+GUI processing), MyHTML took 4.3ms (without GUI or anything else.) Being slightly faster on tiny pages will make no noticeable difference to the user.

Name: Anonymous 2017-05-19 16:35

>>292
What if it goes over your 64KiB goal tho

Name: Anonymous 2017-05-19 19:07

>>293
start removing features

Name: Anonymous 2017-05-20 1:56

>>293
It already did.

Name: Anonymous 2017-05-20 2:28

>>291
Yeah that's normal.

Name: Anonymous 2017-05-20 6:51

I am Heron of Alexandria. I have a large beard and I create mathematical formulas. If you don't repost this comment on 10 other pages, I will use my primitive steam engine to induce mold in your walls.

Name: Cudder !cXCudderUE 2017-05-20 17:00

>>293
What the fuck is a "KiB"?

Name: Anonymous 2017-05-20 17:20

>>298 XB=Binary Xbytes XiB=Decimal Xbytes "10KB= 10.24KiB"

Name: Anonymous 2017-05-20 19:12

How the does anyone working with computers not know fucking SI prefixes? Absolutely pathetic.

Name: Anonymous 2017-05-20 20:40

Name: Anonymous 2017-05-20 21:50

>>298
Kibibyte. It means 1,024 bytes. KiB, MiB, GiB, TiB and so on seem to be used a lot in the modern Linux environment, whereas Windows calls everything KB, MB, GB, TB (even though I think it calculates some things as 1024 bytes per KB, other things as 1000 bytes per KB). Strictly speaking, ``normally" KB, MB, GB etc means a factor of 1000, while JEDEC uses those terms, but applies a factor of 1024 instead. KiB, MiB etc are IEC units, which ALWAYS use a step of 1024 rather than 1000.

>>301
What exactly does that have to do with SI prefixes or ignorance of computer-related matters? Yes, it's not completely correct to say that ``ReactOS is Wine", however ReactOS does use a considerable amount of code from Wine, so it's not hard to understand her reasoning.

Name: Cudder !cXCudderUE 2017-05-20 22:51

>>299-302
I don't give a shit about those stupid prefixes. In everything I post, 1KB = 1024 bytes. 64KB = 65536 bytes (216.)

Name: Anonymous 2017-05-21 3:49

kilometres = 1024 metres
kilograms = 1024 grams

Name: Anonymous 2017-05-22 1:42

1 kikeshekel = 6.000.000.000 shekels

Name: Cudder !cXCudderUE 2017-05-27 15:57

https://www.w3.org/TR/css-syntax-3/#tokenization

They didn't need to define so many fucking tokens: The colon-token, semicolon-token, comma-token, etc. are all just delim-token, the same one-character type! It doesn't make any sense.

Of course, my competitor went the full-retard route with ridiculous bloat, as usual:

https://github.com/lexborisov/mycss/blob/master/source/mycss/tokenizer.c

In other news, I've shrunk the HTML tokeniser to slightly under 1KB. The CSS one may only be slightly larger.

Name: Anonymous 2017-05-27 20:40

>>306
What about the JS parser?

Name: Cudder !cXCudderUE 2017-05-28 5:10

>>307
What about it?

Name: Anonymous 2017-05-28 7:53

>>308
The size of it

Name: Cudder !cXCudderUE 2017-05-29 11:08

>>309
How would I know. Read the fucking thread.

Name: Anonymous 2017-06-07 8:12

>>310
tl;dr

Name: Anonymous 2017-06-07 11:28

>>107

Most slowdown comes from JavaScript and PHP server side. Relational databases are pretty slow too. Optimizing parsing and rendering won't improve much.

Name: Anonymous 2017-06-07 12:23

>>312
unless you optimize parsing, compiling (JIT) and rendering JavaScript

Name: Anonymous 2017-06-07 12:28

>>313

You can't optimize JS. It is badly designed and favors writing inefficient code.

Name: Anonymous 2017-06-07 12:43

>>314
you can optimize everything. JS is now going in the functional direction so it will probably be possible to use all the same tricks that optimizing compilers for lisp and friends use. you won't get C/C++ performance out of it but you can make it less slow

Name: Anonymous 2017-06-07 13:40

>>315
There are clear limits on what you can optimize in JS. For example, JS method calls go through a hash table, which is just overly slow. Of course you can try caching table-lookups, having dirty flags invalidating cache, but that is an exercise in futility, that won't make it observably faster.

Name: Anonymous 2017-06-07 13:44

>>316
ES6 has class-based OOP, this could be optimized down to vtables as opposed to hashes

Name: Anonymous 2017-06-07 13:57

>>317

Yet everyone uses table-based OOP.

Name: Anonymous 2017-06-07 14:03

>>318
browsers don't support ES6 yet, but I'm sure that CudderBrowser will keep up with modern standards!

Name: Anonymous 2017-06-07 16:38

>>319
browsers don't support ES6 yet,
You mean every modern browser that isn't IE do

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List