module Zeitwerk::ExplicitNamespace
def tracepoint_class_callback(event)
def tracepoint_class_callback(event) he class is a singleton class, we won't do anything with it so we bail out immediately. This is several orders of magnitude faster accessing its name. if event.self.singleton_class? ight be tempting to return if name.nil?, to avoid the computation hash code and delete call. But Ruby does not trigger the :class t on Class.new or Module.new, so that would incur in an extra call nothing. he other hand, if we were called, cpaths is not empty. Otherwise tracer is disabled. So we do need to go ahead with the hash code utation and delete call. der = cpaths.delete(real_mod_name(event.self)) er.on_namespace_loaded(event.self) ble_tracer_if_unneeded