Index: src/wp-includes/post.php
===================================================================
--- src/wp-includes/post.php	(revision 60000)
+++ src/wp-includes/post.php	(working copy)
@@
 function get_post_status( $post ) {
 	$post = get_post( $post );
 
 	if ( ! $post ) {
 		return false;
 	}
 
-	return $post->post_status;
+	// Cache the post status to avoid repeated object access.
+	static $status_cache = array();
+	if ( isset( $status_cache[ $post->ID ] ) ) {
+		return $status_cache[ $post->ID ];
+	}
+	$status_cache[ $post->ID ] = $post->post_status;
+	return $status_cache[ $post->ID ];
 }
 
Index: src/wp-includes/user.php
===================================================================
--- src/wp-includes/user.php	(revision 60000)
+++ src/wp-includes/user.php	(working copy)
@@
 function get_userdata( $user_id ) {
 	$user_id = absint( $user_id );
 	if ( ! $user_id ) {
 		return false;
 	}
 
-	$user = wp_cache_get( $user_id, 'users' );
-	if ( $user ) {
-		return $user;
-	}
-
-	$user = WP_User::get_data_by( 'id', $user_id );
-	if ( ! $user ) {
-		return false;
-	}
-
-	wp_cache_set( $user_id, $user, 'users' );
-
-	return $user;
+	// Use object cache for user data to improve performance.
+	$user = wp_cache_get( $user_id, 'users' );
+	if ( false !== $user ) {
+		return $user;
+	}
+
+	$user = WP_User::get_data_by( 'id', $user_id );
+	if ( ! $user ) {
+		return false;
+	}
+
+	wp_cache_set( $user_id, $user, 'users' );
+	return $user;
 }
