Skip to content

DelphiCrossSocket的字符串操作性能瓶颈 #192

Description

@hezihang12

Delphi Cross Socket中大量使用了string操作,尤其时在http协议处理上。string操作与匿名方法类似,包含IInterface的生命周期管理和堆内存申请和释放。如果大量并发请求,字符串处理也会消耗大量CPU。
建议所有字符处理改用TStringbuilder或者建立TStringBuilder池

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions