Frontend Enhancements: - Complete React TypeScript frontend with modern UI components - Distributed workflows management interface with real-time updates - Socket.IO integration for live agent status monitoring - Agent management dashboard with cluster visualization - Project management interface with metrics and task tracking - Responsive design with proper error handling and loading states Backend Infrastructure: - Distributed coordinator for multi-agent workflow orchestration - Cluster management API with comprehensive agent operations - Enhanced database models for agents and projects - Project service for filesystem-based project discovery - Performance monitoring and metrics collection - Comprehensive API documentation and error handling Documentation: - Complete distributed development guide (README_DISTRIBUTED.md) - Comprehensive development report with architecture insights - System configuration templates and deployment guides The platform now provides a complete web interface for managing the distributed AI cluster with real-time monitoring, workflow orchestration, and agent coordination capabilities. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
878 B
Markdown
27 lines
878 B
Markdown
# Explicit property check
|
|
|
|
Sometimes it is necessary to squeeze every once of performance out of your runtime code, and deep equality checks can be a bottleneck. When this is occurs, it can be advantageous to build a custom comparison that allows for highly specific equality checks.
|
|
|
|
An example where you know the shape of the objects being passed in, where the `foo` property is a simple primitive and the `bar` property is a nested object:
|
|
|
|
```ts
|
|
import { createCustomEqual } from 'fast-equals';
|
|
import type { TypeEqualityComparator } from 'fast-equals';
|
|
|
|
interface SpecialObject {
|
|
foo: string;
|
|
bar: {
|
|
baz: number;
|
|
};
|
|
}
|
|
|
|
const areObjectsEqual: TypeEqualityComparator<SpecialObject, undefined> = (
|
|
a,
|
|
b,
|
|
) => a.foo === b.foo && a.bar.baz === b.bar.baz;
|
|
|
|
const isSpecialObjectEqual = createCustomEqual({
|
|
createCustomConfig: () => ({ areObjectsEqual }),
|
|
});
|
|
```
|