Giter Site home page Giter Site logo

内存开销比较大 about sego HOT 2 CLOSED

huichen avatar huichen commented on July 20, 2024
内存开销比较大

from sego.

Comments (2)

xtaci avatar xtaci commented on July 20, 2024

$ go tool pprof http://localhost:6060/debug/pprof/heap
Read http://localhost:6060/debug/pprof/symbol
Fetching /pprof/heap profile from localhost:6060 to
/tmp/f0zzecFq2t
Wrote profile to /tmp/f0zzecFq2t
Adjusting heap profiles for 1-in-524288 sampling rate
Welcome to pprof! For help, type 'help'.
(pprof) top
Total: 313.0 MB
122.0 39.0% 39.0% 122.0 39.0% github.com/huichen/sego.splitTextToWords
64.5 20.6% 59.6% 64.5 20.6% github.com/huichen/sego.upsert
59.5 19.0% 78.6% 275.0 87.9% github.com/huichen/sego.(_Segmenter).LoadDictionary
17.0 5.4% 84.0% 17.0 5.4% github.com/huichen/sego.(_Segmenter).segmentWords

...

from sego.

huichen avatar huichen commented on July 20, 2024

b0a0597

这个commit对内存占用做了优化

from sego.

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.