Sabeeh Ul Hussnain

Results 49 comments of Sabeeh Ul Hussnain

@vanniktech @Him188 thanks for your feedback. I'm aware of this performance issue and will optimize it in the next few versions. @vanniktech I think it would be great if we...

@Him188 Thanks. I'm working on it.

> For a smaller file which is 459kb, Ksoup took 20s while Jsoup only needed 0.1s (including VM startup time). > > [mikan-bangumi-无职转生.txt](https://github.com/user-attachments/files/16404705/mikan-bangumi-.txt) Could you please share the sample code...

> > and it took only 1 second to parse this file with ksoup, while Jsoup took 0.1 seconds. > > That's still 10x slower. @vanniktech yup i know. I'm...

@vanniktech @Him188 Currently, I'm working on two versions: one built with Ktor and kotlinx, and the other built using Korlibs. I see that the Korio branch has better performance; it...

> I would recommend kotlinx-io because it's official. People are likely to be using it and don't want to have multiple IO libraries. Or we can introduce separate modules for...

> Please note that I was comparing Ksoup on iosSimulatorArm64 and Jsoup on desktop JVM. Maybe the simulator is actually far slower than I expected. Yes simulator may not perform...

> getElementsByClass even if you use html string for parse it still use lot of IO operations for parsing and streaming.

> > However, I might recommend instead, not depending on ktor, as it does not sound neccessary for a XML parser to depend on a HTTP client library. > >...

@vanniktech @Him188 version 0.1.4 released with Korio with performance issues fixed and I'm already working on kotlinx-io + ktor variant.