Skip to content

Slow booting #1846

@psos

Description

@psos

Flux version

v2.2.3

Livewire version

last

Tailwind version

Browser and Operating System

Chrome MacOs

What is the problem?

[ 60.21 ms] START UiServiceProvider
[ 60.33 ms] END UiServiceProvider (0.09 ms)
[ 60.37 ms] START FluxServiceProvider
[ 275.34 ms] END FluxServiceProvider (214.94 ms)
[ 275.41 ms] START FluxProServiceProvider
[ 275.47 ms] END FluxProServiceProvider (0.04 ms)
[ 275.49 ms] START LivewireServiceProvider

bootComponentPath is slow, caused by recursive searches.

Code snippets to replicate the problem

public function bootComponentPath()
    {
        if (file_exists(resource_path('views/flux'))) {
            Blade::anonymousComponentPath(resource_path('views/flux'), 'flux');
        }

        Blade::anonymousComponentPath(__DIR__.'/../stubs/resources/views/flux', 'flux');
    }

Screenshots/ screen recordings of the problem

=

How do you expect it to work?

view:cache should cache paths of blade components

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions