Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewriter 메모리 관리 #10

Open
bongjunj opened this issue Jan 16, 2024 · 0 comments
Open

Rewriter 메모리 관리 #10

bongjunj opened this issue Jan 16, 2024 · 0 comments

Comments

@bongjunj
Copy link
Contributor

bongjunj commented Jan 16, 2024

From #6

현재 Rewriter는 C++ 측에서 작동하고 OCaml에서 Rewriter.t 값을 더이상 사용하지 않아도 메모리 해제되지 않음.

처리(파싱)하는 C++ 소스코드의 크기가 큰 경우 이 모듈을 사용하는 프로그램이 메모리를 불필요하게 많이 사용할 수 있으므로 메모리 해제 기능을 제공해야 함.

  • 최선의 방법: Rewriter.t를 더이상 사용하지 않으면 알아서 C++ Rewriter 개체를 반환.
  • 간단한 방법: Rewriter.t를 해제하는 API 제공
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant