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 — ineffecient / incorrect classpath handling · Issue #86 · dflib/jjava

ineffecient / incorrect classpath handling #86

New issue
Copy link
New issue
Copy link
Closed
Closed
ineffecient / incorrect classpath handling#86
Copy link
Milestone
1.0-a6

Description

@maxandersen
maxandersen
opened on Oct 1, 2025
Issue body actions

I think this is a change after #76 suggested refactor - if not - still an issue :)

jjava/jjava-kernel/src/main/java/org/dflib/jjava/kernel/JavaKernel.java

Line 110 in 79ac72b

paths.forEach(jShell::addToClasspath);

this line is in a method that takes a list of strings that are calling addtoclasspath which is an expensive operation (semi-restart jshell)
and it treats the string as classpath separated by path Seprator.....thats fine - but then iterate those via extension loader as if they are paths to individual paths...

  • that latter will fail if actually given a classpath
  • this add to path is quite ineffecient to and is also used in maven magics ...so if you add something with lets say 5 dependencies it is noticably slower.

Activity

  1. andrus commented on Oct 4, 2025

    @andrus
    andrus
    on Oct 4, 2025
    Contributor
    More actions

    Good catch, my bad. JShell docs are not explicit on what the "path" argument should be (an individual entry or multiple separated entries). But looking at its source code, it appears it would support the latter. So yeah, let me combine multiple calls to just one taking a String separated with File.pathSeparator

  2. andrus
    added 2 commits that reference this issue on Oct 4, 2025

    ineffecient / incorrect classpath handling #86

    40cdba4

    ineffecient / incorrect classpath handling #86

    8e7118d
  3. andrus
    added this to the 1.0-a6 milestone on Oct 4, 2025
  4. andrus
    closed this as completedon Oct 4, 2025
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

    Type

    No type

    Projects

    No projects

      Milestone

      • 1.0-a6

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — 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.