GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 循环中拼接字符串 · Issue #182 · APIJSON/APIJSON

循环中拼接字符串 #182

New issue
Copy link
New issue
Copy link
Open
Open
循环中拼接字符串#182
Copy link
Labels
Performance 性能

Description

@QiAnXinCodeSafe
QiAnXinCodeSafe
opened on Dec 29, 2020
Issue body actions

https://github.com/Tencent/APIJSON/blob/297c251f36bfacac4fb896f002f2c6a90c4cddf0/APIJSONORM/src/main/java/apijson/StringUtil.java#L121-L132
https://github.com/Tencent/APIJSON/blob/297c251f36bfacac4fb896f002f2c6a90c4cddf0/APIJSONORM/src/main/java/apijson/StringUtil.java#L543-L554
https://github.com/Tencent/APIJSON/blob/297c251f36bfacac4fb896f002f2c6a90c4cddf0/APIJSONORM/src/main/java/apijson/StringUtil.java#L646-L653
建议在循环中使用StringBuilder拼接字符串

Activity

  1. TommyLemon commented on Dec 29, 2020

    @TommyLemon
    TommyLemon
    on Dec 29, 2020
    Member
    More actions

    感谢建议,当时为了快速开发就简单拼接了,现在确实要优化下

  2. TommyLemon
    added
    Performance 性能
    on Jan 19, 2021
  3. kxlv2000 commented on Mar 12, 2021

    @kxlv2000
    kxlv2000
    on Mar 12, 2021
    Contributor
    More actions

    您好,
    请问问题解决了吗,可以允许我尝试优化此问题吗?

  4. TommyLemon commented on Mar 12, 2021

    @TommyLemon
    TommyLemon
    on Mar 12, 2021
    Member
    More actions

    您好,
    请问问题解决了吗,可以允许我尝试优化此问题吗?

    还没有,当然可以,非常感谢,具体步骤可参考本页 #Pull Request 说明
    https://github.com/Tencent/APIJSON/blob/master/CONTRIBUTING.md#%E4%B8%BA%E4%BB%80%E4%B9%88%E4%B8%80%E5%AE%9A%E8%A6%81%E8%B4%A1%E7%8C%AE%E4%BB%A3%E7%A0%81

  5. Rkyzzy
    added a commit that references this issue on Apr 22, 2021

    feat: 使用StringBuilder优化了字符串拼接

    ab5c047
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Performance 性能

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.