Skip to content

第 53 期 delete from map in go #441

Closed

Activity

pinned this issue on Jul 31, 2019
changed the title [-]【Go 夜读】#53 delete from map in go[/-] [+]【Go 夜读】第 53 期 delete from map in go[/+] on Jul 31, 2019
Bingao-hn

Bingao-hn commented on Aug 2, 2019

@Bingao-hn

请问每期有录视频吗,在哪儿能找到呢?

unpinned this issue on Aug 5, 2019
Allenxuxu

Allenxuxu commented on Aug 21, 2019

@Allenxuxu

@yangwenmai 大佬,非常感谢做了一个这么棒的分享! 想请教一个问题:

如果需要一个长期持有的 map,经常做一些 添加,删除 的操作。 而 delete 只能标记删除,并不会释放内存,这不是会造成内存一直涨下去吗? 有什么比较优雅的方法处理呢?

yangwenmai

yangwenmai commented on Aug 21, 2019

@yangwenmai
MemberAuthor

@yangwenmai 大佬,非常感谢做了一个这么棒的分享! 想请教一个问题:

如果需要一个长期持有的 map,经常做一些 添加,删除 的操作。 而 delete 只能标记删除,并不会释放内存,这不是会造成内存一直涨下去吗? 有什么比较优雅的方法处理呢?

http://lessisbetter.site/2018/09/29/go-map-delete/

Allenxuxu

Allenxuxu commented on Aug 21, 2019

@Allenxuxu

@yangwenmai 大佬,非常感谢做了一个这么棒的分享! 想请教一个问题:
如果需要一个长期持有的 map,经常做一些 添加,删除 的操作。 而 delete 只能标记删除,并不会释放内存,这不是会造成内存一直涨下去吗? 有什么比较优雅的方法处理呢?

http://lessisbetter.site/2018/09/29/go-map-delete/

非常感谢

added
源码阅读Go 夜读分享主题:有关 Go 的源码阅读,源码分析
and removed on Sep 19, 2019
changed the title [-]【Go 夜读】第 53 期 delete from map in go[/-] [+]第 53 期 delete from map in go[/+] on Feb 2, 2020
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

    Go 夜读Go 夜读:主题分享已分享 ✅Go 夜读的分享状态:分享已完成。源码阅读Go 夜读分享主题:有关 Go 的源码阅读,源码分析

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @yangwenmai@Allenxuxu@Bingao-hn

        Issue actions

          第 53 期 delete from map in go · Issue #441 · talkgo/night