Giter VIP home page Giter VIP logo

Comments (9)

fabiocaccamo avatar fabiocaccamo commented on May 2, 2024 1

I confirm! (maybe just few ms due to this data manipulation, db queries are not changed).

from django-robo-cjk.

fabiocaccamo avatar fabiocaccamo commented on May 2, 2024

For reference: https://robocjk.black-foundry.com/admin/robocjk/characterglyph/893881/change/?_changelist_filters=font%3D6%26q%3Duni313B

from django-robo-cjk.

fabiocaccamo avatar fabiocaccamo commented on May 2, 2024

@justvanrossum now the unicode_hex field value contains all glyph encodings separated by comma, and there is a new unicodes field containing a list of unicodes as integers, but this is not available on all methods:

Unfortunately it's not possible to add the unicodes field to the glif_list API method without sacrificing performance: actually the glif_list method returns all glifs in ~1 second because it returns only a subset of each glif data directly from the database, returning the unicodes list slowdowns the response up to ~6 seconds, for this reason I think it's better to split the unicode_hex string on client side.

from django-robo-cjk.

fabiocaccamo avatar fabiocaccamo commented on May 2, 2024

Achieved in 39d5642 , not the cleanest solution, but probably the best compromise given the constraints.

from django-robo-cjk.

justvanrossum avatar justvanrossum commented on May 2, 2024

Did you confirm that the performance of glif_list is not negatively affected?

from django-robo-cjk.

justvanrossum avatar justvanrossum commented on May 2, 2024

@fabiocaccamo what was the PR or commit that resolved this?

from django-robo-cjk.

fabiocaccamo avatar fabiocaccamo commented on May 2, 2024

@justvanrossum in 6bad3ed I added support to multiple glyphs encoding, then in 39d5642 I added unicodes to glif_list response (there was a performance issue to solve first).

from django-robo-cjk.

justvanrossum avatar justvanrossum commented on May 2, 2024

But the task is now completed, right?

from django-robo-cjk.

fabiocaccamo avatar fabiocaccamo commented on May 2, 2024

Yes

from django-robo-cjk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.