Giter VIP home page Giter VIP logo

Comments (3)

pandolia avatar pandolia commented on August 19, 2024

主要的时间耗在群资料的获取上了,如果群多的话确实很耗时间,一个群至少需要进行一次网页请求。
好在手动登录成功后,两天内可以自动登录,不需要再次获取好友和群资料,速度非常快。

from qqbot.

pandolia avatar pandolia commented on August 19, 2024

另外,最主要的时间是耗在 “获取好友和群的真实QQ” 上面了。如果不需要获取真实QQ,那可以去掉相关的代码,只需要进行三次网页请求(第一次请求获取所有好友的 uin 和 nickname、第二次请求获取所有群的 uin 和 name、第三次请求获取所有讨论组的 uin 和 name),应该可以在30秒内完成登陆的。此时,尽管没有真实QQ,但好友和群的 uin 和 nickname/name 还是可以获取到的,可以通过这两个属性来存取需要的联系人。

from qqbot.

pandolia avatar pandolia commented on August 19, 2024

新 2.1.1 版修改了启动方式,登录成功后不获取任何联系人资料就启动 QQBot ,启动速度飞快,10~15秒可启动完毕。启动后再在后台获取联系人资料。
新版暂时放在 fix-fetch-problems 分支下:https://github.com/pandolia/qqbot/tree/fix-fetch-problems

from qqbot.

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.