Git Product home page Git Product logo

Comments (3)

Pickles-wave avatar Pickles-wave commented on May 18, 2024

而且在这里直接选择了values[0]作为attribute的value是否过于粗暴,是否可以也用随机的方式从values中选择一个呢?
value := values[rand.Intn(len(values))]

from bool-expr-indexer.

csimplestring avatar csimplestring commented on May 18, 2024

@Pickles-wave 感谢。不知你有兴趣使用fuzzing test来重新组织一下测试代码吗?起初我只是快速的验证一下我的想法benchmark一下,我认为go 1.18之后推出的fuzz test工具更适合测试现有的代码。

from bool-expr-indexer.

Pickles-wave avatar Pickles-wave commented on May 18, 2024

@csimplestring 我对go语言还不太熟悉,只能勉强看懂,我后续有时间的话会尝试的🤦‍🤦‍

这里要是修改为if flase,value = ""的话,也就是assignment会有99%的attributes中value不为空,那这时每次调用match的时间应该就不是您目前的这个测试结果了,大概会慢许多。我目前本地没有环境,没办法立即测试🤦‍

from bool-expr-indexer.

Related Issues (4)

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.