Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Merge requests
  • !8181

Make frequently used IO resources autoclosable

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/agilob/auto-closable-IO-resources into master Dec 14, 2020
  • Overview 0
  • Commits 7
  • Pipelines 0
  • Changes 6

Created by: agilob

to reduce memory use and unlock them for use by operating system resource scheduler/allocator

Below you can see I run the same template manager test which opens and reads IO resources. I added extra line on debugger just to keep resources busy a bit longer for lsof to scan though them, this allows me to compare before/after results of my changes, as it would be much more difficult to automate this test inside maven, it's all manual.

List of files open by Linux checked with

lsof -f | grep '/home/agilob/Projects/openapi-generator/'

Before changes: without change

Same test after changes: working example

Also reduced complexity of reading dart specific keywords from external file. Autoclose input reader from ruby error stream

I do not know what the kotlin changes are, I promise ¯_(ツ)_/¯

Closes #1909 (closed) and fixes a few other unreported

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/agilob/auto-closable-IO-resources